<% unless @work_logs.empty? %>
    <div class="export-options">
      <%= link_to "PDF", current_url(:format => :pdf), :target => "_blank" %>
      <%= link_to "CSV", current_url(:format => :csv), :target => "_blank" %>
      <%= link_to "Excel", current_url(:format => :xls), :target => "_blank" %>
    </div>

    <table class="table sortable-table highchart" data-graph-container-before="1" data-graph-type="pie" data-graph-xaxis-rotation="-45">
      <thead>
      <tr>
        <th  width="200">Date</th>
        <th data-graph-skip="1" width="200">Total hours</th>
        <th class="hidden_class" data-graph-skip="1" width="200">Total hours</th>
        <th class="hidden_class" width="200">Total hours</th>
        <th data-graph-skip="1" width="800">Description</th>
      </tr>
      </thead>
      <% @work_logs.each do |log| %>
          <tr>
            <td><%= log.date.strftime('%d %B %Y') %></td>
            <td class="hidden_class"><%= log.hours.gsub(":","") %></td>
            <td><%= log.hours %></td>
            <td class="hidden_class"><%= log.hours.gsub(":",",") %></td>
            <td><%= log.description %></td>
          </tr>
      <% end %>
    </table>
    <script type="text/javascript">
        $(".sortable-table").tablesorter();
        if ($('.table tbody tr').length > 1){$('table.highchart').highchartTable();}
    </script>
<% else %>
    <div class="alert-box secondary">
      No sufficient data yet.
    </div>
<% end %>